<script>
	export default {
		globalData: {
		    system: '',
		    capsule: '',
			url: 'http://localhost:80',
			img_url: 'http://43.139.106.105:9000/xiaomayi/',
		  },
		onLaunch: function() {
			console.log('App Launch'),
			 // 在 app.vue 中全局获取一次系统和胶囊信息
			   // 获取系统信息
			   uni.getSystemInfo({
			    success: res => {
			      this.globalData.system = res
			    }
			  })
			  // 获取胶囊信息
			  this.globalData.capsule = wx.getMenuButtonBoundingClientRect()
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
</style>
